//
//  AddOtherChargeListSubView.h
//  HondaPro_2
//
//  Created by Eric on 13-6-28.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HelpClass.h"
#import "MainMenuDataModel.h"

#import "DDPopoverBackgroundView.h"
#import "popContentViewController.h"

#import "webConfig.h"
#import "webService.h"

@interface AddOtherChargeListSubView : UIView <UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,ContentViewControllerDelegate,UIAlertViewDelegate>
{
    UITextField *feiyongleixingTxt;
    UITextField *feiyongmingchengTxt;
    UITextField *feiyongjineTxt;
    
    UITableView *tableViewDis;
    
    UIButton *feiYongLeiXingBtn;
    
    NSArray *_arrOriginalData;
    NSMutableArray *_arrDataPopViewToDis;
    NSMutableArray *_arrDataTableViewToDis;
    
    //下拉菜单属性
    popContentViewController *contentCon;
    UIPopoverController *popCon;
    
    NSInteger _nCurrentRowOnOtherChargeSel;
    NSInteger _nCurrentRowSel;
    
    UIAlertView *_otherChargeListRepeated;
}

//设置按钮的状态
-(void)setUpTheStateBtnByBtn:(UIButton *)btn andState:(BOOL)state;

//创建下拉菜单方法
-(void)createThePopViewControl:(UIButton *)sender;

//请求数据回调方法
-(void)getOtherChargeList:(NSNotification*)notification;

//判断作业指示的 服务类型 是否是保修
-(BOOL)isWarrantyByServiceInIndication;

//判断是否重复添加相同费用
-(BOOL)otherChargeNotRepeat;

//返回其他费用类型名称要显示的字符串
-(NSString *)getOtherChargeTypeStrByIdRowNumber:(NSInteger)IdNum andNameRowNumber:(NSInteger)nameNum;

//remove 所有注册的消息
-(void)removeAllObserver;

//得到列表中的最大序号
-(NSInteger)getTheMaxNumber;

@property (strong,nonatomic) NSArray *arrOriginalDataForServiceType;
@property (strong,nonatomic) NSArray *arrOriginalDataForRepairType;

//根据ID取名字
-(NSString *)getNameByServiceId:(NSString *)serviceId;
-(NSString *)getNameByRepairId:(NSString *)RepairId;

@end
